package com.gy.niuer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gy.niuer.domain.Department;
import com.gy.niuer.service.DepartmentService;
import com.gy.niuer.mapper.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department>
implements DepartmentService{

    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> getAllDepartment() {
        return departmentMapper.selectAll();
    }

    @Override
    public Department selectOneById(int id) {
        return departmentMapper.selectOneById(id);
    }
}
